package com.jmu.medicineknows.controller;

import com.jmu.medicineknows.entity.Result;
import com.jmu.medicineknows.service.SalesStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: JieZi
 * @Date: 2023/7/14 09:14
 * @Description:
 **/
@RestController
@RequestMapping("/sale")
public class SalesStatisticsController {
    @Autowired
    public SalesStatisticsService salesStatisticsService;
    @RequestMapping(value = "/countAll",method = RequestMethod.GET)
    public Result countAll(){
        return salesStatisticsService.countAll();
    }
}